package model

type account struct {
	No       string
	Password string
	balance  float64
}

// GenAccount 封装结构体-类似构造函数
func GenAccount(n string, p string) (a *account) {
	return &account{
		No:       n,
		Password: p,
	}
}
func (a *account) GetBalance() float64 {
	return (*a).balance
}

func (a *account) SetBalance(n float64) {
	(*a).balance = n
}
